package com.aplink.generic.pojo.formdesign;

import java.io.Serializable;

import android.text.TextUtils;

import com.aplink.generic.constant.type.SharePreferenceType;

public class Column implements Serializable {
    private static final long serialVersionUID = -7091601390309642676L;
    private boolean isToken;
    private boolean isUsername;
    private String mColumnName;
    private String mDefaultValue;
    private String mPassedColumnID;
    private SharePreferenceType mPreferenceType;

    public String getColumnName() {
        if (TextUtils.isEmpty(this.mPassedColumnID)) {
            return this.mColumnName;
        }
        return this.mPassedColumnID;
    }

    public String getDefaultValue() {
        return this.mDefaultValue;
    }

    public String getPassedColumnID() {
        return this.mPassedColumnID;
    }

    public SharePreferenceType getPreferenceType() {
        return this.mPreferenceType;
    }

    public String getRealColumnName() {
        return this.mColumnName;
    }

    public boolean isToken() {
        return this.isToken;
    }

    public boolean isUsername() {
        return this.isUsername;
    }

    public void setColumnName(final String columnName) {
        this.mColumnName = columnName;
    }

    public void setDefaultValue(final String defaultValue) {
        this.mDefaultValue = defaultValue;
    }

    public void setPassedColumnID(final String passedColumnID) {
        this.mPassedColumnID = passedColumnID;
    }

    public void setPreferenceType(final SharePreferenceType preferenceType) {
        this.mPreferenceType = preferenceType;
    }

    public void setToken(final boolean isToken) {
        this.isToken = isToken;
    }

    public void setUsername(final boolean isUsername) {
        this.isUsername = isUsername;
    }

}
